//cellsolver.cpp

//#include "stdafx.h"
#include "cellsolver.h"

// processing messages from cells 
//-------------------------------------------------
void CellSolver::receive( Message * message ) {
	
	/*
		Direct processing
		or processing with queue
	*/

}


//-------------------------------------------------
// Processing one message methods
//-------------------------------------------------

//process one external force message 
//-------------------------------------------------
void CellSolver::processExternalForce( Message message ) {
	
	//1) process the message
	//2) send to C2C modul
	
	//3) send back to cell 
}

//process one new particle position message
//-------------------------------------------------
void CellSolver::processNewParticlePosition( Message message ) {

	//1) process the message
	//2) send to differential solver

	//3) send back to cell
}


//------------------------------------------------
// Process messages of one type
//------------------------------------------------

//process all external force messages 
//-------------------------------------------------
void CellSolver::processAllExternalForce() {

	/* TODO clever choosing of messages from queue */

}

//process all new particle position messages 
//-------------------------------------------------
void CellSolver::processAllNewParticlePosition() {

	/* TODO clever choosing of messages from queue */
}





//end of cellsolver.cpp